package com.zmc.admin.infrastructure.bean.vo.login;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Author：zmc
 * @Date：2025/1/25 14:56
 * 手机认证
 */

@Data
public class VerifyPhoneVo implements Serializable {
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$", message = "手机号格式错误")
    private String phone;

    @NotBlank(message = "请发送验证码")
    private String code;

    //1：手机认证；2：更换手机号
    private String type;
}
